//
//  AudioImageTableViewCell.m
//  MIDI
//
//  Created by 王禹丞 on 15/11/19.
//  Copyright © 2015年 QXSX. All rights reserved.
//

#import "AudioImageTableViewCell.h"

#import "UIImageView+WebCache.h"

@interface AudioImageTableViewCell()

@property (weak, nonatomic) IBOutlet UIImageView *songImage;



@end


@implementation AudioImageTableViewCell

+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *ID = @"AudioImageTableViewCell";
    AudioImageTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (cell == nil) {
        
        cell = [[[NSBundle mainBundle] loadNibNamed:ID owner:nil options:nil]firstObject];
        
        [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
    }
    
    return cell;
}

-(void)setSongModel:(GradingTestSongDetailModel *)songModel{

    _songModel = songModel;
    
    NSURL * url = [NSURL URLWithString:_songModel.cover_img];
    
    // [self PlayerAndPause:self.playBtn];
    
    [self.songImage  sd_setImageWithURL:url];
    
    
}
 

@end
